package com.boarsoft.boar.agent.prometheus;

import java.io.File;
import java.io.IOException;
import java.util.Map;

import com.amihaiemil.eoyaml.Yaml;
import com.amihaiemil.eoyaml.YamlMapping;

public class PrometheusYml {
	/** prometheus.yml的路径 */
	protected String path;

	public void update(Map<String, String> m) throws IOException {
		final YamlMapping oym = Yaml.createYamlInput(new File(path)).readYamlMapping();
//		final YamlMapping nym = new MergedYamlMapping(//
//				oym, () -> Yaml.createYamlMappingBuilder().add("key2", "value2").build());
//		oym.yamlSequence(key)
	}
}